package com.cattsoft.android.widget;

import android.app.Activity;
import android.os.Bundle;
import android.widget.ArrayAdapter;
import android.widget.AutoCompleteTextView;

public class AutoCompleteActivity extends Activity {

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);

		setContentView(R.layout.auto_complete);

		ArrayAdapter<String> adapter = new ArrayAdapter<String>(this,
				android.R.layout.simple_dropdown_item_1line, COUNTRIES);

		((AutoCompleteTextView) findViewById(R.id.AutoCompleteTextView01))
				.setAdapter(adapter);
	}

	private final String[] COUNTRIES = { "AA", "BB", "AAA", "AAAAAA", "CCC",
			"RR" };

}
